/**
 * Created by Administrator on 2017/7/27.
 */
$(function () {
    var a = window.location.href;
    var ins = a.indexOf('=');
    var aaa = a.slice(ins +1);
    var c = decodeURIComponent(aaa)
    var obj = JSON.parse(c);
    console.log(obj);
    var html=obj.sLeaveHospitalSummary;
    if(html!==null){
        var a= html.indexOf(":");
        console.log(a);
        var pass=html.substring(0,a+1);
        var content=html.substring(a+1)
        $(".Hospital-summary-matter>p").html(content);
        $(".Hospital-summary-matter>p").prepend($("<span>"+pass+"</span>"))
    }else {
        $(".Hospital-summary-matter").append("<div>亲您的报告暂时还没出来</div>")
    }

    $(".icon-zuo").attr("href","historySheet.html?index="+JSON.stringify(obj));
})